home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / E-G / Field Effects.cpt / Field Effects / card_2841.txt < prev    next >
Text File  |  1989-02-26  |  10KB  |  520 lines

  1. -- card: 2841 from stack: in
  2. -- bmap block id: 2494
  3. -- flags: 0000
  4. -- background id: 2803
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on idle
  8.   global wait
  9.   if the seconds - wait > 60
  10.   then
  11.   hide card field talk
  12.   hide card field talk2
  13.   hide card field talk3
  14. end if
  15. pass idle
  16. end idle
  17. on opencard
  18.   show card field "talk3"
  19.   wait 5 seconds
  20.   hide card field "talk3"
  21.   global bigRect
  22.   put "10,20,510,320" into bigRect
  23.   send mouseUp to button 2
  24.   pass opencard
  25. end opencard
  26.  
  27.  
  28. -- part 3 (button)
  29. -- low flags: 80
  30. -- high flags: 8003
  31. -- rect: left=5 top=49 right=71 bottom=105
  32. -- title width / last selected line: 0
  33. -- icon id / first selected line: 0 / 0
  34. -- text alignment: 1
  35. -- font id: 0
  36. -- text size: 12
  37. -- style flags: 0
  38. -- line height: 16
  39. -- part name: Funny
  40. ----- HyperTalk script -----
  41. on mouseUp
  42.   wait 50
  43.   if the mouseClick
  44.   then
  45.   buttonmove
  46. end if
  47. end mouseUp
  48.  
  49.  
  50.  
  51. -- part 20 (field)
  52. -- low flags: 81
  53. -- high flags: 0000
  54. -- rect: left=10 top=20 right=320 bottom=510
  55. -- title width / last selected line: 0
  56. -- icon id / first selected line: 0 / 0
  57. -- text alignment: 0
  58. -- font id: 3
  59. -- text size: 12
  60. -- style flags: 0
  61. -- line height: 16
  62. -- part name: rectSave
  63. ----- HyperTalk script -----
  64. on mouseUp
  65.   wait 50
  66.   if the mouseClick
  67.   then
  68.   rectchange
  69. else
  70.   if the ShiftKey ="down"
  71.   then
  72.   if the lockText of the target = "false"
  73.   then set the lockText of the target to "true"
  74. else set the lockText of the target to "false"
  75. end if
  76. end if
  77. end mouseUp
  78.  
  79.  
  80.  
  81. -- part 22 (button)
  82. -- low flags: 00
  83. -- high flags: A004
  84. -- rect: left=14 top=128 right=150 bottom=114
  85. -- title width / last selected line: 0
  86. -- icon id / first selected line: 0 / 0
  87. -- text alignment: 1
  88. -- font id: 0
  89. -- text size: 12
  90. -- style flags: 0
  91. -- line height: 16
  92. -- part name: 1
  93. ----- HyperTalk script -----
  94. on mouseUp
  95.   wait 50
  96.   if the mouseClick
  97.   then
  98.   buttonmove
  99. else
  100.   global wait
  101.   put the seconds into wait
  102.   beep 1
  103.   show card field "talk"
  104.  
  105.  
  106.  
  107.  
  108. end if
  109. end mouseUp
  110.  
  111.  
  112.  
  113. -- part 23 (button)
  114. -- low flags: 00
  115. -- high flags: 8004
  116. -- rect: left=15 top=152 right=174 bottom=115
  117. -- title width / last selected line: 0
  118. -- icon id / first selected line: 0 / 0
  119. -- text alignment: 1
  120. -- font id: 0
  121. -- text size: 12
  122. -- style flags: 0
  123. -- line height: 16
  124. -- part name: 2
  125. ----- HyperTalk script -----
  126. on mouseUp
  127.   wait 50
  128.   if the mouseClick
  129.   then
  130.   buttonmove
  131. else
  132.   global wait
  133.   play harpsichord d5 c3
  134.   hide card field "talk"
  135.   show card field "talk2"
  136.   put the seconds into wait
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144. end if
  145. end mouseUp
  146.  
  147.  
  148.  
  149. -- part 25 (button)
  150. -- low flags: 00
  151. -- high flags: 8004
  152. -- rect: left=14 top=178 right=200 bottom=114
  153. -- title width / last selected line: 0
  154. -- icon id / first selected line: 0 / 0
  155. -- text alignment: 1
  156. -- font id: 0
  157. -- text size: 12
  158. -- style flags: 0
  159. -- line height: 16
  160. -- part name: 3
  161. ----- HyperTalk script -----
  162. on mouseUp
  163.   wait 50
  164.   if the mouseClick
  165.   then
  166.   buttonmove
  167. else
  168.   global wait
  169.   hide card field "talk"
  170.   hide card field "talk2"
  171.   show card field "talk3"
  172.   put the seconds into wait
  173. end if
  174. end mouseUp
  175.  
  176.  
  177.  
  178. -- part 26 (button)
  179. -- low flags: 00
  180. -- high flags: 8004
  181. -- rect: left=15 top=204 right=224 bottom=115
  182. -- title width / last selected line: 0
  183. -- icon id / first selected line: 0 / 0
  184. -- text alignment: 1
  185. -- font id: 0
  186. -- text size: 12
  187. -- style flags: 0
  188. -- line height: 16
  189. -- part name: 4
  190. ----- HyperTalk script -----
  191. on mouseUp
  192.   wait 50
  193.   if the mouseClick
  194.   then
  195.   buttonmove
  196.   exit mouseup
  197. end if
  198. set lockScreen to true
  199. hide card field "talk"
  200. hide card field "talk2"
  201. hide card field "talk3"
  202. doMenu "New Field"
  203. put the number of card fields into fn
  204. set the rect of card field fn to 100,100,350,250
  205. set the textFont of card field fn to "Chicago"
  206. set the textAlign of card field fn to "center"
  207. set the style of card field fn to "shadow"
  208. set lockscreen to false
  209. choose browse tool
  210. click at the loc of card field fn with shiftKey
  211. click at the loc of card field fn
  212. type "TH TH TH..."
  213. put empty into card field fn
  214. click at the loc of card field fn
  215. type "TH TH TH..."
  216. put empty into card field fn
  217. click at the loc of card field fn
  218. type "TTTHat's all Folks!"
  219. play boing c5
  220. set lockScreen to true
  221. choose field tool
  222. click at the loc of card field fn
  223. DoMenu "Clear Field"
  224. choose browse tool
  225. set lockScreen to false
  226.  
  227. end mouseUp
  228.  
  229.  
  230.  
  231. -- part 50 (field)
  232. -- low flags: 01
  233. -- high flags: 0002
  234. -- rect: left=292 top=35 right=196 bottom=508
  235. -- title width / last selected line: 0
  236. -- icon id / first selected line: 0 / 0
  237. -- text alignment: 0
  238. -- font id: 3
  239. -- text size: 12
  240. -- style flags: 0
  241. -- line height: 16
  242. -- part name: 
  243. ----- HyperTalk script -----
  244. on mouseUp
  245.   wait 50
  246.   if the mouseClick
  247.   then
  248.   rectchange
  249. else
  250.   if the ShiftKey ="down"
  251.   then
  252.   if the lockText of the target = "false"
  253.   then set the lockText of the target to "true"
  254. else set the lockText of the target to "false"
  255. end if
  256. end if
  257. end mouseUp
  258.  
  259.  
  260.  
  261. -- part 53 (field)
  262. -- low flags: 01
  263. -- high flags: 0002
  264. -- rect: left=138 top=214 right=299 bottom=338
  265. -- title width / last selected line: 0
  266. -- icon id / first selected line: 0 / 0
  267. -- text alignment: 0
  268. -- font id: 3
  269. -- text size: 12
  270. -- style flags: 0
  271. -- line height: 16
  272. -- part name: 
  273. ----- HyperTalk script -----
  274. on mouseUp
  275.   wait 50
  276.   if the mouseClick
  277.   then
  278.   rectchange
  279. else
  280.   if the ShiftKey ="down"
  281.   then
  282.   if the lockText of the target = "false"
  283.   then set the lockText of the target to "true"
  284. else set the lockText of the target to "false"
  285. end if
  286. end if
  287. end mouseUp
  288.  
  289.  
  290.  
  291. -- part 52 (field)
  292. -- low flags: 01
  293. -- high flags: 0007
  294. -- rect: left=173 top=55 right=245 bottom=484
  295. -- title width / last selected line: 0
  296. -- icon id / first selected line: 0 / 0
  297. -- text alignment: 0
  298. -- font id: 3
  299. -- text size: 12
  300. -- style flags: 0
  301. -- line height: 16
  302. -- part name: 
  303. ----- HyperTalk script -----
  304. on mouseUp
  305.   wait 50
  306.   if the mouseClick
  307.   then
  308.   rectchange
  309. else
  310.   if the ShiftKey ="down"
  311.   then
  312.   if the lockText of the target = "false"
  313.   then set the lockText of the target to "true"
  314. else set the lockText of the target to "false"
  315. end if
  316. end if
  317. end mouseUp
  318.  
  319.  
  320.  
  321. -- part 46 (field)
  322. -- low flags: 01
  323. -- high flags: 0002
  324. -- rect: left=110 top=21 right=294 bottom=497
  325. -- title width / last selected line: 0
  326. -- icon id / first selected line: 0 / 0
  327. -- text alignment: 0
  328. -- font id: 0
  329. -- text size: 12
  330. -- style flags: 0
  331. -- line height: 16
  332. -- part name: talk
  333. ----- HyperTalk script -----
  334. on mouseUp
  335.   wait 50
  336.   if the mouseClick
  337.   then
  338.   rectchange
  339. else
  340.   if the ShiftKey ="down"
  341.   then
  342.   if the lockText of the target = "false" then set the lockText of the target to "true"
  343.   else set the lockText of the target to "false"
  344. else
  345.   hide the target
  346. end if
  347. end if
  348. end mouseUp
  349.  
  350.  
  351.  
  352. -- part 47 (field)
  353. -- low flags: 81
  354. -- high flags: 0004
  355. -- rect: left=133 top=84 right=255 bottom=417
  356. -- title width / last selected line: 0
  357. -- icon id / first selected line: 0 / 0
  358. -- text alignment: 0
  359. -- font id: 0
  360. -- text size: 12
  361. -- style flags: 0
  362. -- line height: 16
  363. -- part name: talk2
  364. ----- HyperTalk script -----
  365. on mouseUp
  366.   wait 50
  367.   if the mouseClick
  368.   then
  369.   rectchange
  370. else
  371.   if the ShiftKey ="down"
  372.  
  373.   then
  374.   if the lockText of the target = "false"
  375.   then set the lockText of the target to "true"
  376. else set the lockText of the target to "false"
  377. else
  378.   hide the target
  379. end if
  380. end if
  381. end mouseUp
  382.  
  383.  
  384.  
  385. -- part 48 (field)
  386. -- low flags: 81
  387. -- high flags: 0002
  388. -- rect: left=148 top=110 right=258 bottom=408
  389. -- title width / last selected line: 0
  390. -- icon id / first selected line: 0 / 0
  391. -- text alignment: 0
  392. -- font id: 3
  393. -- text size: 12
  394. -- style flags: 0
  395. -- line height: 16
  396. -- part name: talk3
  397. ----- HyperTalk script -----
  398. on mouseUp
  399.   wait 50
  400.   if the mouseClick
  401.   then
  402.   rectchange
  403. else
  404.   if the ShiftKey ="down"
  405.   then
  406.   if the lockText of the target = "false"
  407.   then set the lockText of the target to "true"
  408. else set the lockText of the target to "false"
  409. else
  410.   hide the target
  411. end if
  412. end if
  413. end mouseUp
  414.  
  415.  
  416.  
  417. -- part 56 (field)
  418. -- low flags: 01
  419. -- high flags: 0004
  420. -- rect: left=15 top=228 right=249 bottom=117
  421. -- title width / last selected line: 0
  422. -- icon id / first selected line: 0 / 0
  423. -- text alignment: 1
  424. -- font id: 0
  425. -- text size: 12
  426. -- style flags: 0
  427. -- line height: 20
  428. -- part name: 5
  429. ----- HyperTalk script -----
  430. on mouseUp
  431.   wait 50
  432.   if the mouseClick
  433.   then
  434.   rectchange
  435. else
  436.   if the CommandKey is "down"
  437.   then
  438. else
  439.   put the rect of the target into save
  440.   set the rect of the target to 125,100,275,250
  441.   put empty into card field id 56
  442.   put "I told You that was all" into line 5 of card field id 56
  443.   wait 50
  444.   put "why didn't you believe me?" into line 5 of card field id 56
  445.   wait 100
  446.  
  447.   put 100 into di
  448.   repeat until the CommandKey is "down"
  449.     put "hit the magic key" into line 5 of card field id 56
  450.     put item 1 of the mouseLoc into hor
  451.     put item 2 of the mouseloc into ver
  452.  
  453.     set the loc of the target to hor + di,ver
  454.     put "follow instructions" into line 5 of card field id 56
  455.     multiply di by (- 1)
  456.   end repeat
  457.   put "5" into card field id 56
  458.   set the rect of the target to save
  459. end if
  460.  
  461. end if
  462. end mouseUp
  463.  
  464.  
  465.  
  466.  
  467. -- part contents for card part 20
  468. ----- text -----
  469.  
  470.  
  471.  
  472.  
  473. -- part contents for card part 46
  474. ----- text -----
  475. Clicking on the objects of this stack will create interesting effects. All of which are duplicated whenever you choose new field or new button from the menu.
  476.  
  477. The field effects are:
  478. 1. dblclick with commandKey on top left will move field with mouse intil commandkey is lifted
  479. 2. dblclick with commandKey on bottom right will resize field with mouse intil commandkey is lifted
  480. 3.  dblclick with commandKey on bottom left will hide field until mouseclick
  481. 4. dblclick with commandKey on top right will toggle zoom effect on and off (don't resize or move zoom field)
  482. 5. dblclick with optionkey will move field up (or down
  483. with shift&optionKeys) while key(s) are depressed
  484. 6. Clicking with shiftkey (or commandShift if locktext is off) will toggle locktext on and off.
  485.  
  486. -- part contents for card part 47
  487. ----- text -----
  488.  
  489. Mouse Effects:
  490. Dbl Click with commandKey to move button while commandkey is depressed
  491.  
  492. Dbl Click with optionKey to move up (or down with shift option) while keys are
  493. depressed
  494.  
  495. -- part contents for card part 48
  496. ----- text -----
  497. Copyright 1987 Jordan Thompson 
  498. (JORDANT on Genie)
  499. 401 Columbus Ave.
  500. Valhalla NY 10595
  501. Distribute for educational purposes
  502. with this notice only.
  503. If you use any part commercially then notify and pay $.50 per copy for license to use.
  504.  
  505. -- part contents for card part 50
  506. ----- text -----
  507.  
  508.  
  509.  
  510.  
  511.  
  512. -- part contents for card part 53
  513. ----- text -----
  514.  
  515.  
  516.  
  517.  
  518. -- part contents for card part 56
  519. ----- text -----
  520. 5